package com.itheima.dao.system;


import com.itheima.domain.system.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserDao {
    List<User> findAll();

    User findById(String id);

    int delete(String[] id);

    int save(User user);

    int update(User user);

    void deleteRole(String userId);

    void addRole(@Param("user_id") String userId, @Param("role_ids") String[] roleIds);

    User findByEmailAndPassword(@Param("email") String email, @Param("password") String password);
}
